import {
	get,
	post
} from '@/utils/network.js'


//获取首页头部分类
export const GetArticleCate = params => {
	return post('/Increased.article/GetArticleCate', params)
}

//发布文章
export const AddArticle = params => {
	return post('/Increased.article/AddArticle', params)
}
//查看文章列表
export const GetArticleList = params => {
	return post('/Increased.article/GetArticleList', params)
}
//获取当前省市区
export const LatLntGetLocation = params => {
	return get('/increased.index/LatLntGetLocation', params)
}
//关注或取消关注
export const setFindUser = params => {
	return post('/wanlshop/find/user/setFindUser', params)
}
//修改
export const UpdateArticle = params => {
	return post('/Increased.article/EditArticle', params)
}
//删除
export const delArticle = params => {
	return post('/Increased.article/DelArticle', params)
}
//详情
export const GetArticle = params => {
	return post('/Increased.article/GetArticleDetail', params)
}
//获取文章评论
export const GetComment = params=>{
	return post	('/Increased.article/GetArticleComment',params)
}
//发布评论
export const AddComment = params=>{
	return post	('/Increased.article/SendComment',params)
}
//点赞评论
export const LikeComment = params=>{
	return post	('/Increased.article/LikeComment',params)
}
//点赞文章
export const LikeArticle = params=>{
	return post	('/Increased.article/LikeArticle',params)
}